<?php
/**
 * Descript:
 * User: blue
 * Date: 2018/9/17 18:18
 */

namespace app\api\validate;


use app\library\base\BaseValidate;

class GroupValid extends BaseValidate
{
    protected $rule=[
        'id'=>"require|positive",
        'title'=>"require|unique:auth_group",
        'status'=>'positive',
        'rules'=>'require|checkIds'
    ];
    protected $scene=[
        'put'=>['id','title'],
        'post'=>['title','rules'],
        'delete'=>['id']
    ];
}